package com.code.wanmi.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.code.wanmi.entity.wm_user.UserDto;

import com.code.wanmi.entity.wm_user.WmSysMenu;

import com.code.wanmi.entity.wm_user.WmSysRole;
import com.code.wanmi.entity.wm_user.WmSysUser;


import java.util.List;
import java.util.Set;

/**
 * <p>
 * 角色信息表 服务类
 * </p>
 *
 * @author 谢晓峰
 * @since 2019-12-05
 */
public interface IWmSysRoleService extends IService<WmSysRole> {
     Integer addRole(WmSysRole wmSysRole);

    Integer insertRole(WmSysRole role, WmSysUser user);

    Integer updateUserRole(WmSysUser user, WmSysRole role);

    //添加角色 权限
    int addUserMenu(UserDto userDto);
    //修改角色 权限
    int updateMenu(WmSysMenu userDto);

    List<WmSysRole> display();

    List<WmSysMenu> getRoleById(long role_id);

    Integer deleteRoleById(Long roleId);

    Set<WmSysRole> getRoleNameByUserId(Long uid);
}
